package com.share.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.order.api.domain.EndOrderVo;
import com.share.order.api.domain.OrderInfo;
import com.share.order.api.domain.SubmitOrderVo;

import java.util.List;
import java.util.Map;

/**
 * @return 13141
 * 2025/10/17
 * 15:05
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    OrderInfo getNoFinishOrder(Long userId);

    Long saveOrder(SubmitOrderVo orderForm);

    void endOrder(EndOrderVo endOrderVo);

    List<OrderInfo> selectUserOrderInfoList(Long userId);

    OrderInfo selectOrderInfoById(Long id);

    OrderInfo getByOrderNo(String orderNo);

    void processPaySucess(String orderNo);

    Map<String, Object> getOrderCount(String sql);
}
